<?php

namespace App\Models\Application;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class Component
 * @package App\Models\Application
 * @version June 28, 2018, 11:42 am CST
 *
 * @property string name
 * @property string title
 * @property string description
 * @property string ui
 * @property string css
 * @property string container
 * @property string row
 * @property string column
 */
class Component extends Model
{
    use SoftDeletes;


    public $table = 'components';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'name',
        'title',
        'description',
        'ui',
        'css',
        'container',
        'row',
        'column'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'name' => 'string',
        'title' => 'string',
        'description' => 'string',
        'ui' => 'string',
        'css' => 'string',
        'container' => 'string',
        'row' => 'string',
        'column' => 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'css' => 'max:50'
    ];

    
}
